package com.estun.backroundManagementService.modules.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.estun.backroundManagementService.modules.product.dto.ProductStatDTO;
import com.estun.backroundManagementService.modules.product.model.Product;
import com.estun.backroundManagementService.modules.product.model.res.ProductRecord;
import com.estun.backroundManagementService.modules.product.request.ProductRequest;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产品表 服务类
 * </p>
 * ø
 *
 * @author machine
 * @since 2023-02-14
 */
public interface ProductService extends IService<Product> {

    Map<String, Object> getProductStat(String currentDate);

    List<ProductStatDTO> getProductStatByCycle(ProductRequest productRequest);

    Page<ProductStatDTO> pageProductStatByCycle(ProductRequest productRequest);

    ProductRecord getProductByProductNo(String productNo);
}
